#ifndef BASEWIDGET_H
#define BASEWIDGET_H

#include "widgets/uwidget.h"

class QScrollArea;
class BaseWidget : public UWidget
{
    Q_OBJECT
public:
    explicit BaseWidget(QWidget* parent = nullptr);
    ~BaseWidget();

    void init();

    void setWidget(QWidget *widget);

    virtual void initUI() = 0;

    virtual void initConnection() = 0;

    virtual void initData();

    virtual void updateLanguage();

protected:
    void changeEvent(QEvent* event) override;

private:
    QScrollArea* area = nullptr;
};

#endif // BASEWIDGET_H
